:root {
    --primary-color: #6e48aa;
    --secondary-color: #9d50bb;
    --text-color: #2d3436;
    --bg-color: #f5f6fa;
    --card-color: #ffffff;
    --nav-color: linear-gradient(135deg, #6e48aa 0%, #9d50bb 100%);
    --footer-color: linear-gradient(135deg, #6e48aa 0%, #9d50bb 100%);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --page-description-color: black;
}

.dark-mode {
    --primary-color: #9d50bb;
    --secondary-color: #6e48aa;
    --text-color: #000000;
    --bg-color: #2d3436;
    --card-color: #1e272e;
    --nav-color: #1e272e;
    --footer-color: #1e272e;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --page-description-color: white;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Simplified preloader for better performance */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--nav-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 60px;
    height: 60px;
    position: relative;
}

.loader-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid #fff0;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preloader-text {
    margin-top: 15px;
    color: #fff;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { opacity: .5; transform: scale(.95); }
    100% { opacity: 1; transform: scale(1.05); }
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

.main-header {
    background: rgb(89 80 80 / .993);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

.container1 {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 15px;
}

.header-logo {
    width: 400px;
    height: 100px;
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: clamp(0.85rem, 3vw, 1rem);
    white-space: nowrap;
}

.nav-links a:hover {
    color: #f5f6fa;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #fff;
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.btn {
    padding: .5rem .8rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: #fff0;
    border: 1px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.guarantee-box {
    background: linear-gradient(135deg, #ffd700 0%, #ffcc00 100%);
    border-radius: 10px;
    padding: 25px;
    margin: 130px auto;
    max-width: 800px;
    margin-top: 200px;
    box-shadow: 0 10px 30px rgb(0 0 0 / .2);
    border: 3px solid #e6c200;
    position: relative;
    overflow: hidden;
    text-align: center;
    animation: glow 2s infinite alternate;
}

.guarantee-box::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px dashed gold;
    border-radius: 15px;
    z-index: -1;
    opacity: .5;
    pointer-events: none;
}

.guarantee-box h2 {
    color: #8b4513;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgb(255 255 255 / .5);
}

.guarantee-box p {
    color: #5d4037;
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 500;
}

@keyframes glow {
    from { box-shadow: 0 0 10px -10px gold; }
    to { box-shadow: 0 0 20px 5px gold; }
}

.page-title {
    text-align: center;
    margin: 40px 0;
    position: relative;
}

.page-title h1 {
    font-size: 2.5rem;
    color: #6e48aa;
    display: inline-block;
    padding: 0 30px;
    position: relative;
    text-shadow: 2px 2px 4px rgb(0 0 0 / .1);
}

.page-title h1::before,
.page-title h1::after {
    content: '✧';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #9d50bb;
    font-size: 1.5rem;
}

.page-title h1::before { left: 0; }
.page-title h1::after { right: 0; }

.page-description {
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--page-description-color);
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

.sankalp-section {
    background: #fff;
    border-radius: 10px;
    padding: 40px;
    margin: 50px 0;
    box-shadow: 0 5px 15px rgb(0 0 0 / .05);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sankalp-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #6e48aa, #9d50bb);
}

/* Simplified symbol animations for better performance */
.symbol-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.rotating-symbol {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgb(255 255 255 / .8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 3px 10px rgb(0 0 0 / .1);
    animation: rotate 20s linear infinite;
}

.symbol-1 {
    top: 20%;
    left: 5%;
    animation-delay: 0s;
}

.symbol-2 {
    top: 70%;
    left: 10%;
    animation-delay: -5s;
}

@keyframes rotate {
    0% { transform: rotate(0deg) translateX(30px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(30px) rotate(-360deg); }
}

.timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    position: relative;
    z-index: 1;
}

.timer-display {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgb(110 72 170 / .1) 0%, rgb(157 80 187 / .1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: #6e48aa;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgb(0 0 0 / .1);
    border: 5px solid #f3e5ff;
}

.timer-display::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px dashed #9d50bb;
    border-radius: 50%;
    z-index: -1;
    opacity: .3;
}

.start-button {
    background: linear-gradient(135deg, #6e48aa 0%, #9d50bb 100%);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgb(110 72 170 / .4);
    font-weight: 700;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.start-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgb(110 72 170 / .6);
}

.start-button:active {
    transform: translateY(1px);
}

.start-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / .2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.start-button:hover::before {
    left: 100%;
}

.completion-message {
    margin-top: 20px;
    font-size: 1.3rem;
    color: #2e7d32;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.completion-message.show {
    opacity: 1;
}

.prayer-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin: 50px 0;
    background: #f8f3e6;
    border-radius: 10px;
    padding: 40px;
    border-left: 10px solid #8d6e63;
}

.prayer-heading {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

.prayer-heading h3 {
    font-size: 1.8rem;
    color: #5d4037;
    margin-bottom: 10px;
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-color: #8d6e63;
}

.prayer-heading h4 {
    font-size: 1.5rem;
    color: #6e48aa;
    margin-top: 20px;
}

.prayer-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.prayer-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgb(0 0 0 / .1);
    margin-bottom: 20px;
}

.prayer-text {
    flex: 1;
    min-width: 300px;
}

.prayer-text p {
    font-size: 1.2rem;
    color: #5d4037;
    line-height: 1.8;
    text-align: justify;
    font-style: italic;
}

.user-type-section {
    margin: 50px 0;
    text-align: center;
}

.user-type-title {
    font-size: 1.5rem;
    color: #6e48aa;
    margin-bottom: 20px;
}

.user-type-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.user-type-button {
    background: #fff;
    border: 2px solid #9d50bb;
    color: #6e48aa;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
}

.user-type-button:hover {
    background: #f3e5ff;
}

.user-type-button.active {
    background: linear-gradient(135deg, #6e48aa 0%, #9d50bb 100%);
    color: #fff;
}

.deities-slider {
    margin: 60px 0;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgb(0 0 0 / .2);
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
    height: 500px;
}

.slider-slide {
    min-width: 100%;
    height: 100%;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgb(255 255 255 / .5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #fff;
    transform: scale(1.2);
}

footer {
    background: var(--footer-color);
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: space-between;
}

.footer-column {
    flex: 1 1 200px;
    min-width: 250px;
    padding: 0 15px;
    margin-bottom: 1.5rem;
}

.footer-column h3 {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: .5rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: .6rem;
}

.footer-column ul li a {
    color: #dfe6e9;
    text-decoration: none;
    transition: var(--transition);
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
}

.footer-column ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-column p {
    color: #dfe6e9;
    margin-bottom: 1rem;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgb(255 255 255 / .1);
}

.footer-bottom p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.social-links {
    display: flex;
    gap: .8rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgb(255 255 255 / .2);
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
    font-size: 1rem;
}

.social-links a:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    border: none;
    outline: none;
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
    z-index: 1000;
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 120px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--nav-color);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
        margin-left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-buttons {
        margin-left: auto;
        margin-right: 15px;
    }
}

@media (max-width: 576px) {
    .footer-column {
        min-width: 100%;
    }
}

.logo-below-footer {
    width: 100%;
    text-align: center;
    padding: 0 15px;
    cursor: pointer;
}

.logo-below-footer img {
    width: 100%;
    height: 100%;
    transition: var(--transition);
    object-fit: cover;
}

.logo-below-footer img:hover {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .logo-below-footer {
        margin: 1.5rem 0;
    }
    
    .logo-below-footer img {
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .logo-below-footer {
        margin: 1rem 0;
    }
    
    .logo-below-footer img {
        max-width: 280px;
    }
}

@media (max-width: 350px) {
    .logo-below-footer img {
        max-width: 220px;
    }
}

@media (min-width: 992px) {
    .logo-below-footer img {
        width: 400px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .logo-below-footer img {
        width: 350px;
        height: 90px;
    }
}

@media (max-width: 400px) {
    .logo-below-footer img {
        width: 280px;
        height: 70px;
    }
}

@media (max-width: 300px) {
    .logo-below-footer img {
        width: 220px;
        height: 55px;
    }
}

@media (max-width: 768px) {
    .page-title h1 {
        font-size: 2rem;
        padding: 0 20px;
    }
    
    .guarantee-box {
        padding: 20px;
    }
    
    .guarantee-box h2 {
        font-size: 1.5rem;
    }
    
    .timer-display {
        width: 200px;
        height: 200px;
        font-size: 3rem;
    }
    
    .prayer-section {
        padding: 30px 20px;
    }
    
    .prayer-heading h3 {
        font-size: 1.5rem;
    }
    
    .prayer-heading h4 {
        font-size: 1.3rem;
    }
    
    .user-type-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .deities-slider {
        height: 250px;
    }
    
    .rotating-symbol {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 400px) {
    .prayer-section {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        margin: 30px 0;
        border-left-width: 5px;
    }
    
    .prayer-heading h3 {
        font-size: 1.3rem;
        text-underline-offset: 5px;
    }
    
    .prayer-heading h4 {
        font-size: 1.1rem;
        margin-top: 10px;
    }
    
    .prayer-image {
        min-width: 100%;
        order: 1;
    }
    
    .prayer-image img {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .prayer-text {
        min-width: 100%;
        order: 2;
    }
    
    .prayer-text p {
        font-size: 1rem;
        line-height: 1.6;
        text-align: left;
    }
    
    .guarantee-box {
        margin: 100px auto 30px;
        padding: 15px;
    }
    
    .guarantee-box h2 {
        font-size: 1.3rem;
    }
    
    .guarantee-box p {
        font-size: .9rem;
    }
    
    .timer-display {
        width: 180px;
        height: 180px;
        font-size: 2.5rem;
    }
    
    .start-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .symbol-3, .symbol-4 {
        display: none;
    }
    
    .deities-slider {
        height: 200px;
    }
}

@media (max-width: 300px) {
    .prayer-heading h3 {
        font-size: 1.1rem;
    }
    
    .prayer-heading h4 {
        font-size: 1rem;
    }
    
    .prayer-text p {
        font-size: .9rem;
    }
    
    .timer-display {
        width: 150px;
        height: 150px;
        font-size: 2rem;
    }
    
    .start-button {
        padding: 10px 25px;
        font-size: .9rem;
    }
}

/* Fix for deities slider images at 768px screen size */
@media (max-width: 768px) {
    .deities-slider {
        height: auto; /* Change from fixed height to auto */
        max-height: 400px; /* Set a maximum height instead */
    }
    
    .slider-container {
        height: auto; /* Change from fixed height to auto */
    }
    
    .slider-slide {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .slider-slide img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 350px;
        object-fit: contain; /* Show entire image without cropping */
    }
}

/* Additional fix for guarantee box positioning */
@media (max-width: 400px) {
    .guarantee-box {
        margin-top: 150px !important;
    }
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Reduced animation complexity for better performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}